<template>
	<view class="richContent">
		<rich-text :nodes="htmlContent"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				htmlContent: '<div style="color: red;">这是富文本内容</div>'
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.richContent {
		padding: 48rpx;
	}
</style>